package com.ce.pms.system.custservice.dao.impl;

import java.util.List;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.system.custservice.dao.ICustEventKindDao;
import com.ce.pms.system.custservice.model.CustEventKindDO;
/**
 * 描述：“事件类型”DAO实现
 * @author 王浩羽
 *
 */
public class CustEventKindDaoImpl extends PmsBaseDaoImpl<CustEventKindDO> implements ICustEventKindDao
{
	public List<CustEventKindDO> queryCustEventKind(Long eventNatureId)
	{
		StringBuilder hqlBuilder = new StringBuilder();
		hqlBuilder.append("SELECT ").append(" OBJ FROM ").append(this.getClassSimpleName())
		.append(" AS OBJ WHERE ").append("OBJ.custEventNature.keyword = ? ORDER BY OBJ.sequence ASC ");
		return findAllResult(hqlBuilder.toString(), eventNatureId);
	}
}